Landsat

import ee
import geemap
geemap.ee_initialize()
Map = geemap.Map()
roi = ee.Geometry.BBox(15.14662579020479, -4.489460109907313,  15.681051457462889, -3.956485370168921)
Map.addLayer(roi)
Map.centerObject(roi)
Map

Landsat#

timelapse = geemap.landsat_timelapse(
    roi,
    out_gif='data/gif/landsat.gif',
    start_year=2000,
    end_year=2025,
    start_date='01-01',
    end_date='12-31',
    bands=['SWIR1', 'NIR', 'Red'],
    frames_per_second=5,
    title='Landsat Timelapse',
    progress_bar_color='white',
    mp4=True,
)
geemap.show_image(timelapse)
Generating URL...
Downloading GIF image from https://earthengine.googleapis.com/v1/projects/11280955351/videoThumbnails/5356469c939dbc0446d4172a197cf07e-6ac38f8b9a1c7fd2cd141d6ff773406c:getPixels
Please wait ...
The GIF image has been saved to: /home/nish/github/konishon/flood-book/notebooks/data/gif/landsat.gif
File '/home/nish/github/konishon/flood-book/notebooks/data/gif/landsat.mp4' already exists. Overwrite? [y/N] Not overwriting - exiting
Error opening output file /home/nish/github/konishon/flood-book/notebooks/data/gif/landsat.mp4.

Sentinel-2#

timelapse = geemap.sentinel2_timelapse(
    roi,
    out_gif='data/gif/sentinel2.gif',
    start_year=2021,
    end_year=2025,
    start_date='01-01',
    end_date='12-31',
    frequency='year',
    bands=['SWIR1', 'NIR', 'Red'],
    frames_per_second=3,
    title='Sentinel-2 Timelapse',
)
geemap.show_image(timelapse)
Generating URL...
Downloading GIF image from https://earthengine.googleapis.com/v1/projects/11280955351/videoThumbnails/6a6b6fc19ced08dd717a22d782c124b8-3c6bf509bb46b8d3e513b6c08a8d1133:getPixels
Please wait ...
The GIF image has been saved to: /home/nish/github/konishon/flood-book/notebooks/data/gif/sentinel2.gif

MODIS#

timelapse = geemap.modis_ndvi_timelapse(
    roi,
    out_gif='data/gif/ndvi.gif',
    data='Terra',
    band='NDVI',
    start_date='2021-01-01',
    end_date='2025-12-31',
    frames_per_second=3,
    title='MODIS NDVI Timelapse',
    overlay_data='countries',
)
geemap.show_image(timelapse)
Generating URL...
Expression evaluates to an empty image collection.
The length of the text sequence must be equal to the number (23) of frames in the gif.